#ifndef MESSAGE1_H
#define MESSAGE1_H
#include "types.h"
#include "message.h"

class MessageLoginRequest : public IMessage
{
public:
    MessageLoginRequest();
    MessageLoginRequest(const LoginData &login);
    virtual ~MessageLoginRequest();
    inline LoginData getLogin() {return m_Login;}

private:
    uint32_t getBufferSize() const;
    void serializeContent(uint8_t **bufPtr) const;
    void deserializeContent(uint8_t **bufPtr);

    LoginData m_Login;
    uint8_t   m_msgid = 1;
};

#endif // MESSAGE1_H
